<script type="text/javascript">	
	$(function(){
		//一次横向滚动一个
		$('#marquee1').kxbdSuperMarquee({
			distance:194,//滚动的宽度设置
			time:3,
			btnGo:{left:'#goL',right:'#goR'},
			direction:'left'
		});
	});
</script>
<div class="menu" id="topmenu">
  <ul>
    <li class="current"><?php echo link_to('首页', '@homepage'); ?></li>
    <li><?php echo link_to('艺海简介', '@html_about'); ?></li>
    <li><?php echo link_to('拍卖预告', '@article_category?catid=3'); ?></li>
    <li><?php echo link_to('艺海资讯', '@article'); ?></li>
    <li><?php echo link_to('精彩照片', '@album'); ?></li>
    <li><?php echo link_to('艺海视频', '@video'); ?></li>
    <li class="clear_bg"><?php echo link_to('业务联系', '@message'); ?></li>
  </ul>
</div>
<!--主内容-->
<div class="cont clears">
  <div class="cont_left">
    <!--焦点图开始-->
    <div class="focus_pic">
      <div id="focus-image">
        <div id="slide-player" class="focus">
          <ul class="slides">
		  <?php foreach ($images as $image): ?>
            <li><a href="<?php echo $image->getUrl(); ?>" target="_blank"><img src="<?php printf(sfConfig::get('app_path_homepage_thumb'), $image->getThumb()) ?>" width="650" height="270" alt="<?php echo $image->getTitle(); ?>" /></a></li>
          <?php endforeach ?>
          </ul>
        </div>
      </div>
    </div>
    <!--焦点图结束-->
    <!--艺海动态 拍卖新闻-->
    <div class="new_main clears">
      <div class="news spacing">
        <h3 class="ft1"><span><a href="<?php echo '/../article/category?catid='.$latestid ?>">更多</a></span>艺海动态</h3>
        <ul>
		  <?php foreach (@$latest as $article): ?>
          <li><a href="<?php echo url_for('article/show?id='.$article->getId()) ?>" target="_blank"><?php echo $article->getTitle(); ?></a></li>
		  <?php endforeach ?>
        </ul>
      </div>
      <!--拍卖新闻-->
      <div class="news">
        <h3 class="ft1"><span><a href="<?php echo '/../article/category?catid='.$newsid ?>">更多</a></span>拍卖新闻</h3>
        <ul>
		  <?php foreach (@$news as $article): ?>
          <li><a href="<?php echo url_for('article/show?id='.$article->getId()) ?>" target="_blank"><?php echo $article->getTitle(); ?></a></li>
          <?php endforeach ?>
        </ul>
      </div>
    </div>
    <!--精彩照片开始-->
    <div class="photos">
      <h3 class="ft1">精彩照片</h3>
      <div class="left_btn btn_wz" id="goL">左</div>
      <div class="right_btn btn_wz" id="goR">右</div>
      <div class="photos_player clears" id="marquee1">
        <ul class="scroll">
        <?php foreach ($photos as $photo): ?>
          <li><a href="<?php echo url_for('album/show?id='.$photo->getAlbumId()) ?>" target="_blank"><img width="180" height="150" src="<?php printf(sfConfig::get('app_path_photo_thumb'), $photo->getThumb()) ?>" alt="<?php echo $photo->getTitle(); ?>" /></a></li>
        <?php endforeach ?>
        </ul>
        <div class="clears"></div>
      </div>
    </div>
    <!--精彩照片结束-->
  </div>
  <div class="cont_right">
    <div class="notice">
      <h3 class="ft1">拍卖预告</h3>
      <ul>
	    <?php foreach (@$forecasts as $article): ?>
        <li><a href="<?php echo url_for('article/show?id='.$article->getId()) ?>" target="_blank"><?php echo $article->getTitle(); ?></a></li>
        <?php endforeach ?>
      </ul>
    </div>
    <?php if($ad1): ?>
    <div class="topics">
      <a href="<?php echo $ad1->getLink(); ?>">
        <img src="<?php printf(sfConfig::get('app_path_ad_image'), $ad1->getImage()) ?>" width="287" height="109" alt="<?php echo $ad1->getTitle(); ?>" />
      </a>
    </div>
    <?php endif ?>
    <?php if($ad2): ?>
    <div class="topics topics_jj">
      <a href="<?php echo $ad2->getLink(); ?>">
        <img src="<?php printf(sfConfig::get('app_path_ad_image'), $ad2->getImage()) ?>" width="287" height="109" alt="<?php echo $ad2->getTitle(); ?>" />
      </a>
    </div>
    <?php endif ?>
    <!--常识-->
    <div class="lore">
      <h3 class="ft2">拍卖知识 <span>>></span></h3>
      <ul>
	    <?php foreach (@$lores as $article): ?>
        <li><a href="<?php echo url_for('article/show?id='.$article->getId()) ?>" target="_blank"><?php echo $article->getTitle(); ?></a></li>
        <?php endforeach ?>
      </ul>
    </div>
  </div>
</div>
<!--友情链接-->
<div class="links">
   <div class="links_left"><h3>友情连接</h3></div>
  <div class="links_right"></div>
  <div class="links_center clears">
	  <ul>
	  <?php foreach ($links as $link): ?>
      <?php if (!$link->getSpecialId()){ ?>
         <li><a href="<?php echo $link->getUrl(); ?>" title="<?php echo $link->getTitle(); ?>" target="_blank"><img height="60px" width="150px" src="<?php printf(sfConfig::get('app_path_link_image'), $link->getImage()) ?>" title="<?php echo $link->getTitle(); ?>" /></a></li>
      <?php } ?>
    <?php endforeach ?>
    </ul>
  </div>
</div>
<script type="text/javascript">
  TB.widget.SimpleSlide.decoration('slide-player', {eventType:'mouse', effect:'scroll'});
</script>
